<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/velocity/2.0.4/velocity.min.js"></script>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.js"></script>
</head>
<body>
<div id="hd">
    <button @click="type=!type">切换</button>
    <transition @before-enter="beforeEnter" @enter="enter" @leave="leave" :css="false">
        <h1 v-if="type">aaaa</h1>
    </transition>
</div>
<script>
    var app=new Vue({
        el:'#hd',
        data:{
            type:false
        },
        methods:{
            beforeEnter(el){
                el.style.opacity=0;
            },
            enter(el,done){
                Velocity(el,{})
            }
        }
    })
</script>
</body>
</html>